﻿<Window x:Class="Chronos.Presentation.MainView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="60" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="0">
            <TextBox Text="{Binding Path=ItemToAdd}" Margin="10" Width="150"></TextBox>
            <Button Command="{Binding Path=AddCommand}"  Margin="10" Padding="10">Add to list</Button>
        </StackPanel>
        
        <ListBox ItemsSource="{Binding Path=ItemList}" Grid.Row="1" Grid.Column="1" Margin="10" />
        
    </Grid>
</Window>
